﻿// Decompiled with JetBrains decompiler
// Type: NetickEditor.NetickDefineAdder
// Assembly: Netick.Unity.Editor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 0658BB4A-05C4-428D-9BD6-82E94959F5A1
// Assembly location: D:\WorkSpaceDemo\UPM\NetickForUnity\Netick\Editor\Netick.Unity.Editor.dll

using UnityEditor;
using UnityEngine;

#nullable disable
namespace NetickEditor;

[InitializeOnLoad]
public static class NetickDefineAdder
{
  private const string Define = "NETICK";

  static NetickDefineAdder()
  {
    BuildTargetGroup buildTargetGroup = EditorUserBuildSettings.selectedBuildTargetGroup;
    string defineSymbolsForGroup = PlayerSettings.GetScriptingDefineSymbolsForGroup(buildTargetGroup);
    if (defineSymbolsForGroup.Contains("NETICK"))
      return;
    PlayerSettings.SetScriptingDefineSymbolsForGroup(buildTargetGroup, defineSymbolsForGroup + ";NETICK");
    Debug.Log((object) "Netick: added scripting define symbol: NETICK");
  }
}
